<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title>list.jsp</title>

	</head>

	<body>
		<p>
			User
		</p>
		<s:property value="user.firstname" />
		<s:property value="user.lastname" />
		<!-- 
		<s:set name="lists" value="#request.list" />
		<s:iterator value="#lists" id="u">
			<s:property value="#u.id" />
			<s:property value="#u.firstname" />
			<s:property value="#u.lastname" />
		</s:iterator>
		 -->
		<table>
			<s:iterator value="#request.list" id="u">
				<tr>
					<td>
						<s:property value="#u.id" />
					</td>
					<td>
						<s:property value="#u.firstname" />
					</td>
					<td>
						<s:property value="#u.lastname" />
					</td>
					<td>
						<s:a href="delete.action?user.id=%{#u.id}">delete</s:a>
					</td>
					<td>
						<s:a href="see.action?user.id=%{#u.id}">update</s:a>
					</td>
				</tr>
			</s:iterator>
		</table>
		<s:a href="index.jsp">return</s:a>
	</body>
</html>
